#ifndef __Main_H
#define __Main_H

#include "stm32f10x.h"
#include "Delay.h"
#include "OLED.h"
#include "Servo.h"
#include "Key.h"
#include "Usart.h"
#include <stdlib.h>

int LevelAngle,VerticalAngle;    // 定义角度变量

// 接收缓冲区
char rx_buffer[100];
uint8_t rx_index = 0;
uint8_t data_received = 0;

//舵机标准角度
//水平方向
int standradLevelAngle = 90;
//垂直方向.

int standradVerticalAngle = 90;

// 视频流分辨率
int frame_width = 640, frame_height = 480;

//标准点坐标
float middleX,middleY;

// 接收到的对角坐标
int x1, y1, x2, y2; 

//实际坐标
int reallyX,reallyY;

#endif
